package cn.yuanqiao.archive.danganzhengli.mapper;

import cn.yuanqiao.archive.danganzhengli.domain.HandOverDa;
import cn.yuanqiao.archive.danganzhengli.domain.vo.HandOverDaVo;
import cn.yuanqiao.common.core.domain.entity.SysDept;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author zjj
 * @date 2023/7/17
 */
public interface HandOverDaMapper {

    int insertHandOverDa(HandOverDa handOverDa);

    HandOverDa selectHandOverDa(HandOverDa handOverDa);

    List<HandOverDa> selectHandOverDaList(HandOverDa handOverDa);

    List<HandOverDaVo> selectHandOverDaVo(@Param("data") HandOverDa handOverDa, @Param("tenantCode")String tenantCode);

    int deleteHandOverDaById(HandOverDa handOverDa);

    int countHandOverDa(HandOverDa handOverDa);

    int updateHandOverId(HandOverDa handOverDa);

    int updateHandOverByReId(HandOverDa handOverDa);

    List<Map<String,Object>> selectHandOverDaNoReId(@Param("tenantCode")String tenantCode);

    int createHandOverDaMapper(@Param("tableName")String tableName);

    int selectCount(HandOverDa handOverDa);

    List<HandOverDaVo> selectHandOverDaVoByItem(@Param("data")HandOverDa handOverDa, @Param("itemTableName") String itemTableName, @Param("folderTableName") String folderTableName, @Param("fileTableName") String fileTableName,@Param("mj") String mj,@Param("bgqx") String bgqx, @Param("tenantCode") String tenantCode);

    List<HandOverDaVo> selectHandOverDaVoByFolder(@Param("data")HandOverDa handOverDa, @Param("folderTableName") String folderTableName, @Param("fileTableName") String fileTableName, @Param("tenantCode") String tenantCode);

    List<HandOverDaVo> selectHandOverDaVoByFile(@Param("data")HandOverDa handOverDa, @Param("fileTableName") String fileTableName, @Param("tenantCode") String tenantCode);

    SysDept selectDeptById(@Param("deptId") Long deptId, @Param("tenantCode") String tenantCode);
}
